<?php

function attachMenu()
{
    $menu = [];
    if (env('APP_DEBUG') && config('tool')['task']) {
        $menu[] = [
            'title' => '定时任务',
            'sub_title' => '定时',
            'css' => 'layui-icon-log',
            'child' => [
                [
                    'href' => url('test/index')->build(),
                    'title' => '任务列表'
                ]
            ]
        ];
    }

    return $menu;
}
